package ipmsg;

/**
 * 飞鸽协议常量
 * 
 * @author idcomcn
 *
 */
public class IpmsgConstants {
	/** 发送消息 **/
	public static final int IPMSG_SENDMSG = 0x00000020;

	/** 通报收到消息 **/
	public static final int IPMSG_RECVMSG = 0x00000021;

	/** 文件传输请求 **/
	public static final int IPMSG_GETFILEDATA = 0x00000060;

	/** 丢弃附加文件 **/
	public static final int IPMSG_RELEASEFILES = 0x00000061;

	/** 附着统计文件请求 **/
	public static final int IPMSG_GETDIRFILES = 0x00000062;

	public static final long IPMSG_COMMASK = 255L;

	public static final long IPMSG_OPTMASK = -256L;

	public static final long IPMSG_NOOPERATION = 0L;

	public static final long IPMSG_BR_ENTRY = 1L;

	public static final long IPMSG_BR_EXIT = 2L;

	public static final long IPMSG_ANSENTRY = 3L;

	public static final long IPMSG_BR_ABSENCE = 4L;

	public static final long IPMSG_BR_ISGETLIST = 24L;

	public static final long IPMSG_OKGETLIST = 21L;

	public static final long IPMSG_GETLIST = 22L;

	public static final long IPMSG_ANSLIST = 23L;

	public static final long IPMSG_READMSG = 48L;

	public static final long IPMSG_DELMSG = 49L;

	public static final long IPMSG_GETINFO = 64L;

	public static final long IPMSG_SENDINFO = 65L;

	public static final long IPMSG_ABSENCEOPT = 256L;

	public static final long IPMSG_SERVEROPT = 512L;

	public static final long IPMSG_DIALUPOPT = 65536L;

	/** 传送验证 **/
	public static final long IPMSG_SENDCHECKOPT = 256L;

	public static final long IPMSG_SECRETOPT = 512L;
	public static final long IPMSG_BROADCASTOPT = 1024L;
	public static final long IPMSG_MULTICASTOPT = 2048L;
	public static final long IPMSG_NOPOPUPOPT = 4096L;
	public static final long IPMSG_AUTORETOPT = 8192L;
	public static final long IPMSG_RETRYOPT = 16384L;
	public static final long IPMSG_PASSWORDOPT = 32768L;
	public static final long IPMSG_NOLOGOPT = 131072L;
	public static final long IPMSG_NEWMUTIOPT = 262144L;
	public static final int MAXBUF = 8192;

	/** 端口号，飞鸽协议默认端口2425 **/
	public static final int DEFAULT_PORT = 2425;

	public static final int COMLEN = 1500;
	public static final int MSGLEN = 1000;
	public static final short NAMELEN = 50;
	public static String USER = "qqiu";
	public static String HOST = "qiujinwu";
}
